//歌曲信息
class MusicData {
  String musicName;
  String singer;
  //秒
  int musicTotalTime = 0;
  String describe;
  String nameExtension; //后缀名
 
  //MusicData();
  
  MusicData(this.musicName,this.singer,this.musicTotalTime,this.describe,this.nameExtension);

  MusicData.map(dynamic obj) {
    this.musicName = obj['musicName'];
    this.singer = obj['singer'];
    this.musicTotalTime = obj['musicTotalTime'];
    this.describe = obj['describe'];
    this.nameExtension = obj['nameExtension'];
  }

  Map<String, dynamic> toMap() {
    var map = new Map<String, dynamic>();
    //if (musicName != null) {
    //  map['musicName'] = musicName;
   // }
    map['musicName'] = musicName;
    map['singer'] = singer;
    map['musicTotalTime'] = musicTotalTime;
    map['describe'] = describe;
    map['nameExtension'] = nameExtension;
    return map;
  }

  //static MusicData fromMap(Map<String, dynamic> map) {
   // MusicData user = new MusicData();
  //  user.name = map['name'];
  //  user.age = map['age'];
  //  user.id = map['id'];
  //  return user;
  //}
}